package com.example.mykotlin.base.config.apiinfo

import io.swagger.v3.oas.models.ExternalDocumentation
import io.swagger.v3.oas.models.OpenAPI
import io.swagger.v3.oas.models.info.Info
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
class SpringDocConfig {
    @Bean
    fun restfulOpenAPI(): OpenAPI =
        OpenAPI()
            .info(
                Info().title("poiuy系统API")
                    .summary("hlb")
                    .description("接口文档")
                    .version("1")
            )
            .externalDocs(
                ExternalDocumentation()
                    .description("系统首页")
                    .url("http://127.0.0.1:10101")
            )

}